import { HelloComponent } from './pages/hello/hello.component';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { IndexComponent } from './pages/index/index.component';
import { Chart01Component } from './pages/chart01/chart01.component';

const routes: Routes = [
  {
    path: '',
    pathMatch: 'full',
    redirectTo: '/index',
  },
  {
    path: 'index',
    component: IndexComponent,
  },
  {
    path: 'chart01',
    component: Chart01Component,
  },
  {
    path: 'hello',
    component: HelloComponent,
  },
  {
    path: 'page01',
    loadChildren: () =>
      import('./pages/page01/page01.module').then((m) => m.Page01Module),
  },
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
})
export class AppRoutingModule {}
